package com.llt;

import com.llt.utils.Utils;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class Util {
    @Test
    void code6(){
        String s = Utils.codeGet();
        System.out.println(s);
    }
    @Test
    void suanfa(){
        int[] arr = {
          5,1,2,6,15,11
        };

        for (int i = 0; i <arr.length-1 ; i++) {
            int minPos = i;
            for (int z = i+1; z < arr.length; z++) {
                if (arr[z]<arr[minPos]){
                    minPos = z;
                }
            }
            int t = arr[i];
            arr[i] = arr[minPos];
            arr[minPos] = t;

        }
        for (int i : arr
             ) {
            System.out.println(i);
        }
    }
}
